// 基于template/src/widgets/{{appEntities}}/{{ctrls@FORM}}-form/{{spinalCase ctrl.codeName}}-form-vo.ts.hbs生成
import { ControlVOBase } from '@/core';
import { transformValue } from '@/utils';
import { model } from './main-3-form-model';

export class FormControlVO extends ControlVOBase {
    constructor(data: any) {
        //  表单预置字段
        data.srfwfmemo = data['srfwfmemo'] ? data['srfwfmemo'] : '';
        data.srffrontuf = data['srffrontuf'] ? data['srffrontuf'] : '';
        super(data);
        //  表单自持属性
        this.$ownKeys = ['srfupdatedate', 'srforikey', 'srfkey', 'srfmajortext', 'srftempmode', 'srfuf', 'srfdeid', 'srfsourcekey', 'ibizsample0001name', 'field21', 'field09', 'formitemex1', 'ibizsample0001id'];
    }
    get srfupdatedate() {
        return this.$DO.updatedate;
    }
    set srfupdatedate(value: any) {
        this.$DO.updatedate = value;
    }
    get srfkey() {
        return this.$DO.ibizsample0001id;
    }
    set srfkey(value: any) {
        this.$DO.ibizsample0001id = value;
    }
    get srfmajortext() {
        return this.$DO.ibizsample0001name;
    }
    set srfmajortext(value: any) {
        this.$DO.ibizsample0001name = value;
    }
    get ibizsample0001name() {
        return this.$DO.ibizsample0001name;
    }
    set ibizsample0001name(value: any) {
        this.$DO.ibizsample0001name = value;
    }
    get field21() {
        return this.$DO.field21;
    }
    set field21(value: any) {
        this.$DO.field21 = value;
    }
    get field09() {
        return this.$DO.field09;
    }
    set field09(value: any) {
        this.$DO.field09 = value;
    }
    get ibizsample0001id() {
        return this.$DO.ibizsample0001id;
    }
    set ibizsample0001id(value: any) {
        this.$DO.ibizsample0001id = value;
    }
    // 界面主键标识
    get ibizsample0001() {
        return this.$DO.ibizsample0001id;
    }

    set ibizsample0001(value: any) {
        this.$DO.ibizsample0001id = value;
    }

    //  工作流预置字段
    srfwfmemo: any;
    srffrontuf: any;

    //  无实体属性表单项
    get srftempmode() {
        return this.$DO.srftempmode;
    }

    set srftempmode(value: any) {
        this.$DO.srftempmode = value;
    }
    get formitemex1() {
        return this.$DO.formitemex1;
    }

    set formitemex1(value: any) {
        this.$DO.formitemex1 = value;
    }

    //  表单重复器

    /**
     * 返回后台数据
     *
     * @return {*} 
     * @memberof FormControlVO
     */
	public getDo() {
        return {
            srffrontuf: this.srffrontuf,
            ibizsample0001name: this.$DO.ibizsample0001name,
updatedate: this.$DO.updatedate,
ibizsample0001id: this.$DO.ibizsample0001id,
formitemex1: this.formitemex1,
        }
	}

}